package com.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

public interface DAO {
	
	public Boolean isLogin(String account,String password);
	public void insert(Object obj);
	public void delete(Object obj);
	public void update(Object obj);

	public int getRows(String hql); 
	public List<?> getObjects(String hql,int pageSize,int firstRow);
	public List<?> getObjects(String hql); 
	public List<?> getObjects(DetachedCriteria detachedCriteria); 
	public Object getObject(Object obj, int id); 
}
